<?php

class DBMFilterGroup {
	const AND_GROUP 	= 1;
	const OR_GROUP 		= 2;
	
	private $type = 1;
	private $filters = array();
	
	public function __construct($type, $filters = array()){
		$this->setType($type);
		$this->setFilters($filters);
	}
	
	public function getType(){
		return $this->type;
	}
	public function setType($type){
		$this->type = $type;
	}
	public function getFilters(){
		return $this->filters;
	}
	public function setFilters($filters){
		$this->filters = $filters;
	}
	
	public function addFilter(DBMFilter $filter){
		$this->filters[] = $filter;
	}
}

?>
